<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h2>Visualizar Usuário</h2>

            <p:panel styleClass="container_24 clearfix " style="background: none; border: none;"> 
                <h:form id="form" acceptcharset="utf-8">
                    <p:growl id="msg" life="3000" autoUpdate="true"/>

                    <p class="subtitle">Dados Gerais</p>

                    <p:outputLabel value="Nome:" styleClass="grid_3" for="nomeInputText"/>
                    <p:inputText id="nomeInputText" styleClass="grid_18" 
                                 readonly="true" value="#{managerPesquisarUsuario.usuarioVisualizar.nome}"/>

                    <p:outputLabel value="Curso:" styleClass="grid_3" for="cursoInputText"/>
                    <p:inputText id="cursoInputText" styleClass="grid_18" readonly="true" 
                                 value="#{managerPesquisarUsuario.usuarioVisualizar.curso}"/>

                    <p class="subtitle">Administração</p>
                    <p:dataTable id="tableAdmin" var="item" value="#{managerPesquisarUsuario.gruposVisualizar}" 
                                 styleClass="grid_24" rowIndexVar="rowid" 
                                 style="white-space: pre-wrap;"
                                 rowKey="#{item.id}" rows="5" paginator="true"  
                                 paginatorPosition="bottom" emptyMessage="Nenhum registro">  
                        <f:facet name="header">
                            <p:outputLabel value="Setor" />
                        </f:facet>

                        <p:column headerText="Permissão"> 
                            <p:outputLabel value="#{item.nome}"/>
                        </p:column>

                    </p:dataTable>

                    <br/>
                    <div class="buttonAction">

                        <p:button value="Voltar" icon="ui-icon-circle-arrow-w"
                                  href="pesquisarusuario.xhtml"
                                  />
                    </div>






                </h:form>


            </p:panel> 
        </ui:define>
    </ui:composition>
</html>